package com.jerry.config;

import com.mongodb.client.MongoClient;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.MongoTemplate;

@Configuration
@ConfigurationProperties("mongodb")
public class MongoDBConfig {
    private String server;
    private Integer port;
    private String database;

    /*@Bean
    public MongoClient mongoClient(){
        return new MongoClient(server,port);
    }
    @Bean
    public MongoTemplate mongoTemplate(){
        return
    }*/

}
